<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnIsManualSubmitInStepProjectTable extends AbstractMigration
{
    public function up()
    {
        $this->table('step_project')
            ->addColumn('is_manual_submit', 'enum', ['values' => 'yes,no', 'default' => 'no', 'null' => false, 'comment' => '是否跳过上游组装限制 (yes是,no否)'])
            ->save();

    }

    public function down()
    {
        $this->table('step_project')
            ->removeColumn('is_manual_submit')
            ->save();
    }
}
